<form id="add-form" class="form-horizontal form-ajax" role="form" data-toggle="validator" method="POST" action="">
    {:token()}

    <div class="form-group">
        <label for="c-tags" class="control-label col-xs-12 col-sm-2">{:__('User')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select data-rule="" class="form-control selectpicker" name="row[problem_id]" data-live-search="true">
                <option value="0" selected>请选择问题</option>
                {foreach name="problemList" item="vo"}
                <option value="{$vo.id}" {in name="$vo.id" value="$row.problem_id"}selected{/in} >{$vo.info}</option>
                {/foreach}
            </select>

        </div>
    </div>

    <div class="form-group">
        <label for="content" class="control-label col-xs-12 col-sm-2">{:__('Content')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="content" name="row[content]" value="{$row.content}" data-rule="required" />
        </div>
    </div>

    <div class="form-group">
        <label for="c-tags" class="control-label col-xs-12 col-sm-2">{:__('User')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select id="c-tags" data-rule="" class="form-control selectpicker" name="row[user_id]" data-live-search="true">
                <option value="0" selected>请选择用户</option>
                {foreach name="userList" item="vo"}
                <option value="{$vo.id}" {in name="$vo.id" value="$row.user_id"}selected{/in}>{$vo.info}</option>
                {/foreach}
            </select>

        </div>
    </div>

    <div class="form-group hidden layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>